package com.loanapp.server.market.provider.modular.count;

import com.loanapp.server.market.api.customer.entity.CustomPlatformCountInfo;

import java.util.Date;

/**
 * Created by yuzhengxing on 2017/9/1.
 * 数据统计service
 */

    public interface ICountServiceTwo {

        /**
         * 判断是否存在
         *
         */
        boolean isExist(String platformId, String buttonId, String starPlatformId, String bannerId, String homePageId, Date date);

        /**
         * 新增数据
         * @param
         * @param date
         * @return
         */
        int insertCustomPlatformCountInfo(String platformId, String buttonId, String starPlatformId, String bannerId, String homePageId, Date date, Integer stuts);

        /**
         * 更新当天浏览量或点击总数
         * @param
         * @param date
         * @return
         */
        int updateCount(String platformId, String buttonId, String starPlatformId, String bannerId, String homePageId, Date date, Integer stuts);



        /**
         * 根据条件查询列表
         * @param
         * @param date 当天日期
         * @return
         */
        CustomPlatformCountInfo selectCustomPlatformCountInfo(String platformId, String buttonId, String starPlatformId, String bannerId, String homePageId, Date date);
}
